<script language="javascript">

	  function alphaOnly(e) {
	  var code;
	  if (!e) var e = window.event;
	  if (e.keyCode) code = e.keyCode;
	  else if (e.which) code = e.which;
	  if ((code >= 48) && (code <= 57)) { return false; }
      return true;
    }
	</script>
	 <SCRIPT language=Javascript>
       <!--
       function isNumberKey(evt)
       {
          var charCode = (evt.which) ? evt.which : event.keyCode;
          if (charCode != 46 && charCode > 31 
            && (charCode < 48 || charCode > 57))
             return false;

          return true;
       }
       //-->
    </SCRIPT>
		<div id="addEmployee-box" title="Add Employee">
		<div class="employee-left-col">
			<fieldset id="fieldset-alert-add">
				  <legend>EMPLOYEE INFORMATION</legend>
				  	<form action="">
				  	<div class="admin-employee-update">
				  		<div class="admin-employee-row">
				  			<span>Firstname:</span> <input type="text" id="firstname-add" name="firstname-add" onkeypress="return alphaOnly(event);" />
				  			<span>Contact #:</span> <input type="text" id="contact-add" name="contact-add" onkeypress="return isNumberKey(event)" />
				  		</div>
				  		<div class="admin-employee-row">
				  			<span>Lastname:</span> <input type="text" id="lastname-add" name="lastname-add" onkeypress="return alphaOnly(event);" />
				  			<span>Hiredate:</span> <input type="text" id="hiredate-add" name="hiredate-add" readonly="readonly"/>
				  		</div>
				  		<div class="admin-employee-row">
				  			<span>Address:</span> <textarea id="address-add" name="address-add" rows="4" cols="72"></textarea>
				  		</div>
				  		
				  		<div class="admin-employee-row">
				  			<span>Branch:</span>
				  			<select id="branch-add" name="branch-add">
				  				<?php foreach ($this->display['branch'] as $branch): ?>
				  					<option value="<?php echo $branch->getBranchId(); ?>"><?php echo $branch->getBranch(); ?>-<?php echo (strlen($branch->getLocation()) > 40) ? substr($branch->getLocation(),0,37).'...' : $branch->getLocation(); ?></option>
				  				<?php endforeach; ?>
				  			</select>
				  		</div>
				  		
				  		<div class="admin-employee-row">
				  			<span>Position:</span>
				  			<select id="position-add" name="position-add">
				  				<?php foreach ($this->display['position'] as $position): ?>
				  					<option value="<?php echo $position->getPositionId(); ?>"><?php echo $position->getPositionName(); ?></option>
				  				<?php endforeach; ?>
				  			</select>
				  		</div>
				  		
				  	</div>
				  	</form>
			</fieldset>
		</div>
		</div>
